﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure.StorageClient;

namespace Thor.Repository.Azure.Table
{
    /// <summary>
    /// Represents a row in the AdministratorAccount table.
    /// </summary>
    internal class AdministratorAccountRow : TableServiceEntity
    {
        #region Constructors

        public AdministratorAccountRow() : base() { }

        public AdministratorAccountRow(string applicationName, string emailAddress)
            : base(applicationName, emailAddress)
        {
            ApplicationName = applicationName;
            EmailAddress = emailAddress;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Name of the application accessing the table.
        /// </summary>
        public string ApplicationName { get; set; }

        /// <summary>
        /// Email address of the administrator.
        /// </summary>
        public string EmailAddress { get; set; }

        /// <summary>
        /// First name of the administrator.
        /// </summary>
        public string FirstName { get; set; }

        /// <summary>
        /// Last name of the administrator.
        /// </summary>
        public string LastName { get; set; }

        /// <summary>
        /// User name of the administrator.
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// Unique id of the administrator.
        /// </summary>
        public Guid Id { get; set; }

        #endregion
    }
}
